package zhieasy.cn.persistence.mapper.found;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import zhieasy.cn.model.found.LostAndFind;

import java.util.List;

@Mapper
public interface LostAndFindMapper extends BaseMapper<LostAndFind> {
    List<LostAndFind> findLafListByCateId(@Param("sizeBegin")int sizeBegin ,@Param("sizeEnd")int sizeEnd,
                                  @Param("lafType")int lafType ,@Param("lafCtgId")int lafCtgId);

    LostAndFind findLafByOpenId(@Param("lafId")String lafId);

    List<LostAndFind> findLafListWithAnyCateId(@Param("sizeBegin")int sizeBegin ,@Param("sizeEnd")int sizeEnd,
                                               @Param("lafType")int lafType);
}
